package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.FinanceItemEntity;
import com.ls.lserp.dbaccess.Entity.VoucherDetailEntity;
import com.ls.lserp.dbaccess.Entity.VoucherEntity;
import com.ls.lserp.modules.trade.entity.AccountVoucher;
@MyBatisDao
public interface VoucherEntityMapper extends CrudDao<AccountVoucher>{
	//获取会计科目数据集
    List<FinanceItemEntity> findFinanceItem();
    //查询一览
    List<VoucherEntity> findList(VoucherEntity voucherEntity);
    //插入凭证
    int insertData(VoucherEntity voucherEntity);
    //更新凭证
    int updateData(VoucherEntity voucherEntity);
    //插入凭证明细
    int insertDetailData(VoucherDetailEntity voucherDetailEntity);
    //获取一条凭证信息
    AccountVoucher get(VoucherEntity voucherEntity);
    //通过凭证号查询数据是否存在
    VoucherEntity getByVoucherNo(VoucherEntity voucherEntity);
    //获取凭证明细信息
    List<VoucherDetailEntity> getDetail(VoucherEntity voucherEntity);
    //获取历史凭证
    List<VoucherDetailEntity> findVoucherHistory(AccountVoucher accountVoucher);
    //更新业务结算状态
    int updateFinanceStatus(VoucherDetailEntity voucherDetailEntity);
    
}